﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="food_CX.aspx.cs" Inherits="Dryricenet.houTai.food_CX" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <style>
        .tr td {
            color:#ffffff;
            font-weight:bolder;
        }
         .tr1 td {
            color:#ffffff;
        }
         .xlk {
            width: 100px;
            height: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
             <table width="98%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#1c232f"
            style="border-collapse: collapse">
            <tbody>
                <tr class="tr">
                    <td bgcolor="#1c232f" style="padding-left: 5px; height: 25px" align="center">
                        菜品信息
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 5px; height: 25px">
                        查找类别：<asp:DropDownList ID="drp" runat="server" CssClass="xlk">
                            <asp:ListItem>全部</asp:ListItem>
                            <asp:ListItem>美食类别</asp:ListItem>
                            <asp:ListItem>名称</asp:ListItem>
                            <asp:ListItem>特价</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="DropDownList1" runat="server" CssClass="xlk"></asp:DropDownList>
                       <asp:TextBox ID="txtQuan" runat="server" Style='border: solid 1px #000000;
                                                 color: #666666' Width="215px"></asp:TextBox>
                        &nbsp;<asp:Button ID="Search" runat="server" OnClick="Search_Click" Text="查找" Style='border: solid 1px #000000;
                            color: #666666' />
                        &nbsp;<asp:Button ID="Export" runat="server" OnClick="Export_Click" Text="数据导出EXCEL"
                            Style='border: solid 1px #000000; color: #666666' /><br />
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="GridView1_PageIndexChanging" EmptyDataText="未查询到数据" AllowPaging="True" AllowSorting="True" Font-Size="14px">
                            <Columns>
                                <asp:BoundField DataField="FoodID" HeaderText="序号" FooterText="序号" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FoodName" HeaderText="名称" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FoodTypeName" HeaderText="类别" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Describe" HeaderText="描述" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="290px" />
                                </asp:BoundField>
                                <asp:ImageField DataImageUrlField="PicUrl" HeaderText="图片">
                                    <ControlStyle Height="100px" Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:ImageField>
                                <asp:BoundField DataField="Price" HeaderText="单价" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Fen" HeaderText="份">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Special" HeaderText="特价商品" >
                                <ControlStyle Width="50px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SalesVolume" HeaderText="销售量" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Inventory" HeaderText="库存" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <a href='food_Update.aspx?FoodID=<%#DataBinder.Eval(Container.DataItem, "FoodID") %>' target='_self'>修改</a>
                                        <a href='food_Delete.aspx?FoodID=<%#DataBinder.Eval(Container.DataItem, "FoodID") %>'onclick="return confirm('是否删除？')">删除</a>
                                    </ItemTemplate>
                                    <ControlStyle Width="40px" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr class="tr1">
                    <td bgcolor="#1c232f" style="padding-left: 5px; height: 25px">
                        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                        <input type="button" name="Submit5" value="返回" onclick="javascript:history.back();" />
                        <input type="button" name="Submit52" value="打印" onclick="javascript:window.print();" />
                    </td>
                </tr>
            </tbody>
        </table>
        </div>
    </form>
</body>
</html>
